package cannot.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cannot.pojo.MainType;
import cannot.service.MainTypeService;

/**
 * 统管用户后台的url
 * @author Administrator
 *
 */
@Controller
public class NavUserBackController {
  @Autowired
  MainTypeService mainTypeService;
	/**
	 * 投稿管理
	 * @return
	 */
    @RequestMapping("/submitPage")
    public String uploadPage(Model model) {
    	List<MainType> mainTypes = mainTypeService.listMainType();
    	model.addAttribute("mainTypes", mainTypes);
        return "user/leftSide/submitPage";
    }
    
   
   
}